using System.Collections;
using System.Collections.Generic;
using System.Threading;
using UnityEngine;
using UnityEngine.Networking;

public static class Extensions
{
    public static SynchronizationContextAwaiter GetAwaiter(this SynchronizationContext scontext) => new SynchronizationContextAwaiter(scontext);

    public static UnityWebRequestAwaiter GetAwaiter(this UnityWebRequestAsyncOperation asyncOp)
    {
        return new UnityWebRequestAwaiter(asyncOp);
    }
}
